from __future__ import annotations
from dataclasses import dataclass, field

type Pairing = tuple[int, int]

@dataclass
class BoardState:
    actice_columns: dict[int, int] = field(default_factory=dict)
    finished_columns: set[int] = field(default_factory=set)

    def copy(self) -> BoardState:
        return BoardState(
            actice_columns=self.actice_columns.copy(),
            finished_columns=self.finished_columns.copy()
        )

@dataclass
class SimulationResult:
    rounds: int
    score: float
        

def get_size(n: int) -> int:
    return 13 - 2 * abs(7 - n)